// 船舶信息
import request from "@/utils/https/requests";
// 列表
export function shipInfoList(data: any) {
  return request({
    url: "/shipInfo/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddShipInfo(data: any) {
  return request({
    url: "/shipInfo/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModShipInfo(data: any) {
  return request({
    url: `/shipInfo/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function shipInfoDetail(id: string) {
  return request({
    url: `/shipInfo/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteShipInfo(id: string) {
  return request({
    url: `/shipInfo/postDelete/${id}`,
    method: "post",
  });
}
